﻿using UnityEngine;
using System.Collections;

public class EnemyWalk : MonoBehaviour {

	// Variables
	public Transform target;

	public float wanderSpeed = 2;
	
	// Update is called once per frame
	void Update () {
		transform.LookAt (target);
		transform.Translate (Vector3.forward * wanderSpeed * Time.deltaTime);
	}
}
